﻿using System;
using System.Collections.Generic;
using System.Text;

using Asp = System.Web;

namespace Hanhud.Web.UI
{
    public class HANHUDHeader : Asp.UI.Control, IHANHUDHeader
    {
        public System.Web.UI.Control ThisControl
        {
            get { return this; }
        }

        public HANHUDHeader()
        {
            //this.Load += new EventHandler(HANHUDHeader_Load);
        }

        void HANHUDHeader_Load(object sender, EventArgs e)
        {
            
        }

        protected override void Render(Asp.UI.HtmlTextWriter writer)
        {
            writer.WriteLine(
                @"
            <!-- Begin header -->
            <div class=""Header"">
                <div class=""LogoHeader"">
                    <a href=""Index.htm"" title=""Cty Cổ phần kinh doanh bất động sản""><img src=""{0}"" alt="""" /></a>
                </div>", Page.ResolveUrl(string.Format("~/App_Themes/{0}/Images/Logo-Slogan.png", Page.Theme)));

            base.Render(writer);

            writer.WriteLine(@"
            </div>
            <!-- End header -->"); 
        }
    }
}
